<template>
  <div>
    <el-pagination background layout="prev, pager, next" :total="total"></el-pagination>
  </div>
</template>

<script>
import Bus from '../../utils/Bus'
export default {

  data() {
      return {
          total: 0
      }   

  },
  mounted(){
      Bus.$on('total',this.fun);
  },
  beforeDestroy(){
      Bus.$off('total',this.fun);
  },
  methods:{
      fun(val){
          this.total = val
      }
  }
};
</script>

<style>
</style>